package com.sise.dubbo.spi;

import java.util.ServiceLoader;

/**
 * @author linhao
 * @date 2019/5/16
 * @Version V1.0
 */
public class Demo {

    public static void main(String[] args) {
        ServiceLoader<PersonAction> serviceLoader=ServiceLoader.load(PersonAction.class);
        System.out.println("this is java spi");
        serviceLoader.forEach(PersonAction::say);
    }
}
